package com.shape.sdk.collect;

import java.util.Random;

/**
 * Created by ouzhiyin on 24/01/2018.
 */

public class FakeAntCollector implements ICollector {
  @Override
  public void start() {

  }

  @Override
  public void stop() {

  }

  @Override
  public DeviceData getHeartRate(String deviceID) {
    Random rand = new Random();
    int hr = (int) (120 + Math.sqrt(60) * rand.nextGaussian());
    DeviceData deviceData = new DeviceData();
    deviceData.hr = hr;
    return deviceData;
  }
}
